package te2;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
*@author created by zhanxianbo
*@date 2017年8月7日--下午4:35:14
*/
public class test13 {
	public static void main(String[] args) throws ParseException {
		
//			Calendar calendar=Calendar.getInstance();
//			int year=calendar.get(Calendar.YEAR);
//			int month=calendar.get(Calendar.MONTH);
//			int day=calendar.get(Calendar.DATE);
//			calendar.set(year, month, day);
//			Integer num=calendar.get(Calendar.DAY_OF_WEEK)-1;
//			String[] week={"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};
//			System.out.println(week[num]);
//			System.out.println(System.currentTimeMillis());
			
			long times = 1508923605281L;
			Date date = new Date(times);
			SimpleDateFormat sFormat = new SimpleDateFormat("yyyy-MM-dd");
			String days = sFormat.format(date);
			Date datet = sFormat.parse(days);
			Calendar calendar = Calendar.getInstance();
			calendar.setTime(datet);
			int w = calendar.get(Calendar.DAY_OF_WEEK)-1;
			String[] week={"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};
			System.out.println(week[w]);
			
			 
	}

}


